package com.heima.user.feign;

import com.heima.common.dto.ResponseResult;
import com.heima.user.dto.WmUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author WSJ
 * @Date 2022-03-11-20:18
 * @Version 1.0 （版本号）
 */

@FeignClient("leadnews-media")
public interface MediaFeign {
    @PostMapping("/api/v1/user")
    public ResponseResult<WmUser> save(@RequestBody WmUser user);

    @PutMapping("/api/v1/user")
    public ResponseResult update(@RequestBody WmUser user);
}
